<!DOCTYPE html>
<html lang="en">

<head>
    <title>丁德振nb666</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/style.css" rel="stylesheet">
    <style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .kunkun {
            width: 400px;
            height: 400px;
            background: url(img/篮球坤.jpg);
            animation: kunkun 10s infinite;
            /* infinite  无限循环 */
            /* 17，22 行名称要一致 */
            margin: auto;
        }

        @keyframes kunkun {
            0% {
                background: url(img/篮球坤.jpg);

            }

            30% {
                background: url(img/蔡的不敢出声.jpg);
            }

            70% {
                background: url(img/真ikun.jpg);
            }

            100% {
                background: url(img/篮球坤.jpg);
            }
        }

        /* 28，41 开头和结尾图片轮播保持一致可以使播放更加丝滑 */
        .kunkun {
            position: relative;

        }

        .ikun img {
            width: 500px;
            height: 400px;
            /* 变成圆形 */
            border-radius: 50%;
            /* 变成圆形 */
            border: 4px solid orange;
            position: absolute;
            left: -510px;
            animation: ikun 6s infinite;

        }
/* 引入动画 */
        @keyframes ikun {
            0%{
                left: -510px;
                /* 旋转 */
                transform: rotate(0deg);
                /* 旋转 */
            }

            30%{
                left: 750px;
                /* 旋转 */
                transform: rotate(360deg);
                /* 旋转 */
            }

            70%{
                left: 750px;
                /* 旋转 */
                transform: rotate(360deg);
                /* 旋转 */
            }

            100%{
                left: -510px;
                /* 旋转 */
                transform: rotate(0deg);
                /* 旋转 */
            }
        }
        .banner{
            width:400px;
            height:350px;
            border:1px solid #333;
            margin:50px auto; 
            overflow: hidden; 
        }
        .banner ul{
            width:500%;
            height:100%;
            animation:banner 10s infinite;
         }
         .banner ul li{
            width:20%;
            height:100%;
            float:left;
        }

        .banner ul li img {
            width: 100%;
            height:100%;
        
           
         }
         @keyframes banner{
            0%{
                transform: translate(0);
            }
            20%{
                transform: translate(-20%);
            }
            40%{
                transform: translate(-40%);
            }
            60%{
                transform: translate(-60%);
            }
            80%{
                transform: translate(-80%);
            }
            100%{
                transform: translate(0%);
            }

 }
    </style>
</head>

<body>
    <div class="kunkun"></div>
    <div class="ikun">
        <img src="img/真ikun.jpg" alt="">
    </div>
    <div class="banner">
        <ul>
            <li>
                <img src="img/蔡的不敢出声.jpg" alt="">

            </li>
            <li>
                <img src="img/篮球坤.jpg" alt="">

            </li>
            <li>
                <img src="img/菜虚鲲.jpg" alt="">

            </li>
            <li>
                <img src="img/敢问鸡在何方.jpg" alt="">

            </li>
            <li>
                <img src="img/绿尸寒.jpg" alt="">

            </li>
        </ul>
    </div>
</body>

</html>